<template>
  <div class="flex-box scroll-good">
    <div class="flex-box__item good" v-for="good in scrollGoodData" :key="good.value">
      <img class="good__image" :src="good.image">
      <div class="good__title">{{good.label}}</div>
      <div class="good__footer flex-box">
        <div class="good__price">{{good.price}}</div>
        <i class="el-icon-circle-plus" style="color:#d32f2f;"></i>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    scrollGoodData: Array
  }
};
</script>

<style scoped>
.scroll-good
{
    overflow: hidden;

    width: 375px;

    background: #f4f4f6;
}
.good
{
    overflow: hidden;
    flex-shrink: 0;

    width: 100px;
    margin: 3px;

    background: #fff;
}
.good__image
{
    width: 100px;
    height: 100px;
}
.good__title
{
    display: -webkit-box;
    overflow: hidden;

    width: 100px;

    white-space: nowrap;
    text-overflow: ellipsis;
}
.good__price
{
    flex: 1;

    color: #e64340;
}

</style>
